package com.tpp.scheduler.controller;

import com.tpp.comm.vo.Result;
import com.tpp.scheduler.service.AdminSchedulerService;
import com.tpp.scheduler.vo.CalendarSearchVo;
import com.tpp.scheduler.vo.CalendarVo;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/s/scheduler")
public class AdminSchedulerController {

    @Resource
    private AdminSchedulerService adminSchedulerService;

    @PostMapping("/findCalendarByCinemaIdAndDate")
    public Result findCalendarByCinemaIdAndDate(@RequestBody CalendarSearchVo calendarSearchVo){
        return Result.success(adminSchedulerService.findCalendarByCinemaIdAndDate(calendarSearchVo.getCinemaId(),calendarSearchVo.getDate()));
    }

}
